package com.bootdo.common.jvmtest;

public class Notint {

    static class SupClass {
        static {
            System.out.println("sup ");
        }

        public static int value = 1;
    }

    static class SubClass extends SupClass {
        static {
            System.out.println("sub");
        }
    }


    public static void main(String[] args) {
        System.out.println(SubClass.value);
    }
    // 只会输出sup的信息，对于静态代码块，只有直接定义在这个字段的类才会被初始化
}
